Package-level declarations

Types

Link copied to clipboard
typealias CacheKey = String
Link copied to clipboard
@Serializable
data class LocalNotification(val id: String = UUID.randomUUID().toString(), val type: LocalNotificationType, val title: String, val subtitle: String? = null, val body: String, val delay: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
data class Paywall(val databaseId: String, var identifier: PaywallIdentifier, val name: String, val url: PaywallURL, val htmlSubstitutions: String, presentationStyle: String?, expandedPresentationStyle: PaywallPresentationStyle?, presentationDelay: Long, presentationCondition: String, var presentation: PaywallPresentationInfo = PaywallPresentationInfo( style = expandedPresentationStyle ?: PaywallPresentationStyle.None.also { Logger.debug( LogLevel.warn, LogScope.paywallPresentation, "Unknown or unsupported presentation style: $presentationStyle", ) }, delay = presentationDelay, ), val backgroundColorHex: String, val darkBackgroundColorHex: String? = null, _products: List<ProductItem> = emptyList(), _productItemsV3: List<CrossplatformProduct> = emptyList(), _productItems: List<ProductItem> = emptyList(), var productIds: List<String> = _productItems.map { it.compositeId }.ifEmpty { _productItemsV3.map { it.fullProductId } }, var responseLoadingInfo: Paywall.LoadingInfo = LoadingInfo(), var webviewLoadingInfo: Paywall.LoadingInfo = LoadingInfo(), var productsLoadingInfo: Paywall.LoadingInfo = LoadingInfo(), var shimmerLoadingInfo: Paywall.LoadingInfo = LoadingInfo(), var productVariables: List<ProductVariable>? = null, var swProductVariablesTemplate: List<ProductVariable>? = null, var paywalljsVersion: String? = null, var isFreeTrialAvailable: Boolean = false, var presentationSourceType: String? = null, var featureGating: FeatureGatingBehavior = FeatureGatingBehavior.NonGated, var computedPropertyRequests: List<ComputedPropertyRequest> = emptyList(), var localNotifications: List<LocalNotification> = emptyList(), var onDeviceCache: OnDeviceCaching = OnDeviceCaching.Disabled, var experiment: Experiment? = null, var closeReason: PaywallCloseReason = PaywallCloseReason.None, var state: Map<String, Any> = emptyMap(), val urlConfig: PaywallWebviewUrl.Config? = null, val cacheKey: CacheKey, val buildId: String, var surveys: List<Survey> = emptyList(), val isScrollEnabled: Boolean? = true, val rerouteBackButton: Paywall.ToggleMode? = null) : SerializableEntity
Link copied to clipboard
Link copied to clipboard
@Serializable
data class PaywallPresentationInfo(val style: PaywallPresentationStyle, val delay: Long)
Link copied to clipboard
@Serializable
sealed class PaywallPresentationStyle
Link copied to clipboard
class PaywallProducts(val primary: StoreProduct? = null, val secondary: StoreProduct? = null, val tertiary: StoreProduct? = null)
Link copied to clipboard
@Serializable
data class PaywallRequestBody(var appUserId: String)
Link copied to clipboard
@Serializable
data class Paywalls(val paywalls: List<Paywall>) : SerializableEntity
Link copied to clipboard
@Serializable
value class PaywallURL(val value: String)
Link copied to clipboard
@Serializable
data class PaywallWebviewUrl(val url: String, val timeout: Long, val score: Int)